package com.gzbugu.polytechsasia.factory;

import com.gzbugu.polytechsasia.dao.IArticleDAO;
import com.gzbugu.polytechsasia.dao.IUserDAO;
import com.gzbugu.polytechsasia.dao.impl.ArticleDAO;
import com.gzbugu.polytechsasia.dao.impl.UserDAO;

/**
 * DAO工厂类
 * 
 * @author gauze
 * 
 */
public class DAOFactory {

	/**
	 * 获得UserDAO实例
	 * 
	 * @return UserDAO instance
	 */
	public static IUserDAO getUserDAO() {
		return new UserDAO();
	}

	/**
	 * 获得ArticleDao实例
	 * 
	 * @return ArticleDAO instance
	 */
	public static IArticleDAO getArticleDAO() {
		return new ArticleDAO();
	}

}
